<?php

namespace App\Controller\Api\Ad;

use App\Dao\Ad\AdDao;
use Hyperf\Di\Annotation\Inject;
use Yj\Apidog\Annotation\ApiController;
use Yj\Apidog\Annotation\PostApi;

/**
 * @ApiController(prefix="api/ad/ad")
 */
class AdController
{

    /**
     * @Inject()
     * @var AdDao
     */
    protected $adDao;

    /**
     * @PostApi(path="lists",description="w1w")
     */
    public function lists()
    {
        $data = $this->adDao->page(false)->lists();
        _SUCCESS($data);
    }

}